var a_center2 = echarts.init(document.getElementById('c2'), "dark");

var a_center2_option = {
    angleAxis: {
        type: 'category',
        data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
    },
    radiusAxis: {},
    polar: {},
    series: [{
        type: 'bar',
        data: [1, 2, 3, 4, 3, 5, 1],
        coordinateSystem: 'polar',
        name: 'xx外呼',
        stack: 'a'
    }, {
        type: 'bar',
        data: [2, 4, 6, 1, 3, 2, 1],
        coordinateSystem: 'polar',
        name: '产品推销',
        stack: 'a'
    }, {
        type: 'bar',
        data: [1, 2, 3, 4, 1, 2, 5],
        coordinateSystem: 'polar',
        name: 'xx专案',
        stack: 'a'
    }, {
        type: 'bar',
        data: [2, 4, 6, 1, 3, 2, 1],
        coordinateSystem: 'polar',
        name: '社区访问',
        stack: 'a'
    }, {
        type: 'bar',
        data: [2, 4, 6, 1, 3, 2, 1],
        coordinateSystem: 'polar',
        name: '满意度回访',
        stack: 'a'
    }],
    legend: {
        show: true,
        data: ['xx外呼', '产品推销', 'xx专案', '社区访问', '满意度回访']
    }
};

a_center2.setOption(a_center2_option)
window.addEventListener("resize", () => {
    a_center2.resize();
});